from django.conf.urls import url

from doctor import views
from rest_framework.routers import DefaultRouter

urlpatterns = [
    url(r'^create/$', views.GreateDoctor.as_view()),
    url(r'^update/$', views.UpdateDoctor.as_view()),
    url(r'^myinfo/$', views.DoctorMyInfor.as_view()),

]




router = DefaultRouter()
router.register('search', views.DoctorSearchViewSet, base_name='doctors_search')

urlpatterns += router.urls
